package mtest3.day4;

public class Demo1 {
    public static void main(String[] args) {
        SequenStack sq = new SequenStack(5);
        sq.push("aa");
        sq.push("bb");
        sq.push("cc");
        sq.push("dd");
        sq.push("ee");
//        sq.push("ff");
        System.out.println(sq.peek());
        System.out.println(sq.peek());
        System.out.println(sq.peek());
        System.out.println(sq.peek());
        System.out.println(sq.peek());
//        System.out.println(sq.pop());
//        System.out.println(sq.pop());
//        System.out.println(sq.pop());

        System.out.println(sq);
    }
}
